package org.goldenport.g3

/**
 * Currentlly not used.
 * 
 * @since   Sep. 16, 2010
 * @version Sep. 30, 2010
 * @author  ASAMI, Tomoharu
 */
@deprecated("unused")
abstract class G3Activity(val context: G3AgentContext) extends PartialFunction[Any, Any] {
  val activity: PartialFunction[Any, Any]

  def isDefinedAt(in: Any) = activity.isDefinedAt(in)
  def apply(in: Any) = activity.apply(in)
}

@deprecated("unused")
class PlainActivity(ctx: G3AgentContext)(val activity: PartialFunction[Any, Any]) extends G3Activity(ctx) {
}

@deprecated("unused")
abstract class G3ActivityClass {
  def create(ctx: G3AgentContext): PartialFunction[Any, Any]
}

@deprecated("unused")
class PlainActivityClass(val activity: PartialFunction[Any, Any]) {
  def create(ctx: G3AgentContext) = new PlainActivity(ctx)(activity)
}
